package com.ym.domain.model;

import com.gitee.sunchenbin.mybatis.actable.annotation.ColumnComment;
import com.gitee.sunchenbin.mybatis.actable.annotation.ColumnType;
import com.gitee.sunchenbin.mybatis.actable.annotation.TableComment;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Table;
import java.math.BigDecimal;
import java.time.LocalDate;


@Data
@Table
@TableComment("交易汇总表")
@EqualsAndHashCode(callSuper = true)
public class FnTradeSummary extends BaseModel {

    @Column
    @ColumnComment("汇总日期")
    private LocalDate summaryDate;

    @Column
    @ColumnComment("当日交易数")
    private Long tradeCount;

    @Column
    @ColumnType(value = MySqlTypeConstant.DECIMAL, length = 18, decimalLength = 2)
    @ColumnComment("当日交易总额")
    private BigDecimal totalTradeAmount;

    @Column
    @ColumnType(value = MySqlTypeConstant.DECIMAL, length = 18, decimalLength = 2)
    @ColumnComment("当日交易利润")
    private BigDecimal totalProfit;

    @Column
    @ColumnComment("当日充值笔数")
    private Long rechargeCount;

    @Column
    @ColumnType(value = MySqlTypeConstant.DECIMAL, length = 18, decimalLength = 2)
    @ColumnComment("当日充值总额")
    private BigDecimal rechargeAmount;

    @Column
    @ColumnType(value = MySqlTypeConstant.DECIMAL, length = 18, decimalLength = 2)
    @ColumnComment("当日提现总额")
    private BigDecimal withdrawAmount;

}
